Skip to content

Conversation

@okramarenko
Copy link
Collaborator

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the SingleStore Entity Framework Core provider from version 8.0.2 to 8.0.3. It includes dependency updates, a critical bug fix for Math.Log translation, improvements to connection string handling, and updates to default character set configurations.

Changes:

  • Updated EF Core dependencies from 8.0.2 to 8.0.13 and other package versions
  • Fixed Math.Log SQL translation to correctly reverse arguments (C# Math.Log(value, base) → SQL LOG(base, value))
  • Improved connection attribute handling to avoid unnecessary connection string mutations
  • Changed default charset from utf8 to utf8mb4 and GUID collation from utf8_general_ci to utf8mb4_bin

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Version.props Updated version from 8.0.2 to 8.0.3
Dependencies.targets Updated EF Core and related package versions from 8.0.2 to 8.0.13
dotnet-tools.json Updated dotnet-ef tool version
src/EFCore.SingleStore/Query/Internal/SingleStoreMathMethodTranslator.cs Added ReverseArgs flag to fix Math.Log argument order bug
src/EFCore.SingleStore/Storage/Internal/SingleStoreConnectionStringOptionsValidator.cs Refactored to only add connection attributes when flags are changed
src/EFCore.SingleStore/Storage/Internal/SingleStoreRelationalConnection.cs Consolidated connection attribute handling logic
src/EFCore.SingleStore/Internal/SingleStoreOptions.cs Changed defaults to utf8mb4 charset and utf8mb4_bin collation
test/EFCore.SingleStore.Tests/ValueGeneration/Internal/SingleStoreSequentialGuidValueGeneratorTest.cs Fixed class name from MysqlSequentialGuidValueGeneratorTest
test/EFCore.SingleStore.FunctionalTests/SingleStoreConnectionStringOptionsValidatorTests.cs Refactored tests with helper methods and updated assertions
test/EFCore.SingleStore.FunctionalTests/Query/*.cs Added new test methods and updated SQL baselines
test/EFCore.SingleStore.FunctionalTests/MigrationsSingleStoreTest.cs Updated expected SQL for charset changes and added primitive collection tests
test/EFCore.SingleStore.FunctionalTests/ConnectionSettingsSingleStoreTest.cs Updated expected GUID formats to lowercase
test/EFCore.SingleStore.FunctionalTests/BadDataJsonDeserializationSingleStoreTest.cs Fixed class name and skipped unsupported geospatial test
.github/workflows/test_setup/*.{sh,ps1} Added additional test filters for new test classes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

var nameAttr = "_connector_name:SingleStore Entity Framework Core provider";
var versionAttr = $"_connector_version:{programVersion}";

var changed = existingAttrs.Add(nameAttr) | existingAttrs.Add(versionAttr);
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potentially dangerous use of non-short circuit logic.

Copilot uses AI. Check for mistakes.
var nameAttr = "_connector_name:SingleStore Entity Framework Core provider";
var versionAttr = $"_connector_version:{programVersion}";

var changed = existingAttrs.Add(nameAttr) | existingAttrs.Add(versionAttr);
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potentially dangerous use of non-short circuit logic.

Suggested change
var changed = existingAttrs.Add(nameAttr) | existingAttrs.Add(versionAttr);
var addedNameAttr = existingAttrs.Add(nameAttr);
var addedVersionAttr = existingAttrs.Add(versionAttr);
var changed = addedNameAttr || addedVersionAttr;

Copilot uses AI. Check for mistakes.
@okramarenko okramarenko merged commit 3d63ae2 into master Feb 2, 2026
4 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants